<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../layui/css/layui.css"/>
    <title>系统登录 - 超市订单管理系统</title>

    <link type="text/css" rel="stylesheet" href="../statics/css/style.css" />

    <script type="text/javascript">
	/* if(top.location!=self.location){
	      top.location=self.location;
	 } */
    </script>
    <style>
        #ba {
            width: 550px;
            padding: 80px 90px 45px 30px;
            margin: 220px auto;
            outline: 1px solid #ccc;
        }

        .btn-group-item {
            text-indent: 90px;
        }

    </style>
</head>
<body>
<div id="ba">
<form class="layui-form" action="dologin" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">账号：</label>
        <div class="layui-input-block">
            <input type="text" name="username" required  id="username" lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input"/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">密码：</label>
        <div class="layui-input-block">
            <input type="password" name="password" id="password" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input"/>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo" id="question">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</div>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
<script src="../layui/layui.all.js"></script>
<!--e-->
<!--<script>
    $(function(){
        $("#question").click(function () {
            var username=$("#username").val();
            var password=$("#password").val();
            $.ajax({
                "url":"dologin",
                "type":"get",
                "data":{username:username,password:password},
                "dataType":"json",
                "success":function (data) {
                    if(data=="true"){
                        location.href="main.html";
                    }else{
                        location.href="login.html";
                    }
                }
            });
        });
    });
</script>-->

</body>
</html>

